//
//  GWMineViewController.m
//  新浪微博
//
//  Created by qianfeng on 16/1/9.
//  Copyright (c) 2016年 高炜. All rights reserved.
//

#import "GWMineViewController.h"
#import "GWDiscoverItemGroup.h"
#import "GWDiscoverItem.h"
#import "GWDiscoverCell.h"
#import "GWCommonIArrowtem.h"
#import "GWCommonSwitchItem.h"
#import "GWCommonLabelItem.h"
#import "GWSettingViewController.h"
@interface GWMineViewController ()

@end

@implementation GWMineViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.rightBarButtonItem =[[UIBarButtonItem alloc]initWithTitle:@"设置" style:UIBarButtonItemStyleDone target:self action:@selector(setting)];
    
    
    
    [self addGroup0];
    [self addGroup1];
    
    
}
-(void)addGroup0
{
    GWDiscoverItemGroup *group =[[GWDiscoverItemGroup alloc]init];
    
    GWCommonIArrowtem *newFriends =[GWCommonIArrowtem itemWithIcon:@"new_friend" Title:@"新的好友"];
    newFriends.bageValue =@"5";
    group.items =@[newFriends];
    [self.itemGroups addObject:group];
}
-(void)addGroup1
{
    GWDiscoverItemGroup *group =[[GWDiscoverItemGroup alloc]init];
    GWCommonIArrowtem *myPhoto =[GWCommonIArrowtem itemWithIcon:@"album" Title:@"我的相册"];
    myPhoto.subleTitle =@"(100)";
    GWCommonIArrowtem *collect =[GWCommonIArrowtem itemWithIcon:@"collect" Title:@"我的收藏"];
    collect.subleTitle =@"(10)";
    GWCommonIArrowtem *like =[GWCommonIArrowtem itemWithIcon:@"like" Title:@"赞"];
    like.subleTitle =@"(36)";
    like.bageValue = @"10";
    group.items =@[myPhoto,collect,like];
    [self.itemGroups addObject:group];
}

-(void)setting
{
    
    [self.navigationController pushViewController:[[GWSettingViewController alloc]init] animated:YES];
}

@end
